package com.cloud.drore.eboss.operation.controller;

import com.cloud.drore.eboos.common.base.PagePo;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboss.operation.entity.po.DistributorInfoPo;
import com.cloud.drore.eboss.operation.entity.vo.DistributorInfoVo;
import com.cloud.drore.eboss.operation.supplierApiService.IDistributorInfoApiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: 运营商_合作管理接口<br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/3/23 10:11 <br>
 * @Author: <a href="1451173193@qq.com">杨亮</a>
 */
@RequestMapping("/distributorInfo")
@Api(value = "/运营商_合作管理接口", description = "运营商_合作管理接口-杨亮")
@RestController
public class CooperationManagementController {
    @Resource
    IDistributorInfoApiService distributorService;
    @ApiOperation(value = "查询分销商列表")
    @PostMapping("/getDistributorList")
    public ResultMessage<List<DistributorInfoVo>> getDistributorList(@RequestBody PagePo<DistributorInfoPo> pagePo){

        return distributorService.getDistributorList(pagePo);
    }


}
